﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using V = Science.Mathematics.VectorCalculus;

namespace VectorCalculus5Ed.Chapter1.Section1
{
    public class Example06
    {
        public Example06()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
            double[] v = new double[3];
            v[0] = Math.E;
            v[1] = Math.PI;
            v[2] = -Math.Sqrt(3.0);

            V.Vector v3 = v[0] * V.UnitVector.i 
                + v[1] * V.UnitVector.j + v[2] * V.UnitVector.k; 

            result += v3[0].ToString() + "   " +
                v3[1].ToString() + "   " + v3[2].ToString() + "\r\n";
        }
    }
}

/* 2.71828182845905   3.14159265358979   -1.73205080756888 */  
